//
//  NSArray+Safe.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/7/8.
//

#import "NSArray+Safe.h"


@implementation NSArray (Safe)
-(id)safeObjectAtIndex:(NSInteger)index
{
    if(index<self.count){
        return [self objectAtIndex:index];
    }else{
        return nil;
    }
}
@end
